﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using System.Device.Location;

namespace MolfMolfMolf
{
    public class Club : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private string _clubId;
        public string ClubId
        {
            get { return _clubId; }
            set { _clubId = value; OnPropertyChanged("ClubId"); }
        }

        private string _clubName;
        public string ClubName
        {
            get { return _clubName; }
            set { _clubName = value; OnPropertyChanged("ClubName"); }
        }

        private GeoCoordinate _clubCoordinate;
        public GeoCoordinate ClubCoordinate
        {
            get { return _clubCoordinate; }
            set { _clubCoordinate = value; OnPropertyChanged("ClubCoordinate"); }
        }

        private string _clubCity;
        public string ClubCity
        {
            get { return _clubCity; }
            set { _clubCity = value; OnPropertyChanged("ClubCity"); }
        }

        private string _clubAddress;
        public string ClubAddress
        {
            get { return _clubAddress; }
            set { _clubAddress = value; OnPropertyChanged("ClubAddress"); }
        }

        private string _clubPhone;
        public string ClubPhone
        {
            get { return _clubPhone; }
            set { _clubPhone = value; OnPropertyChanged("ClubPhone"); }
        }

        private string _clubHoles;
        public string ClubHoles
        {
            get { return _clubHoles; }
            set { _clubHoles = value; OnPropertyChanged("ClubHoles"); }
        }

        private string _clubHCP;
        public string ClubHCP
        {
            get { return _clubHCP; }
            set { _clubHCP = value; OnPropertyChanged("ClubHCP"); }
        }

        protected void OnPropertyChanged(string name)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
        }

    }
}
